package com.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "producer-service", path = "/producer")//feign集成ribbon 默认策略就是轮询
public interface ProducerService {

    @Bean
    @RequestMapping("/produce")
    String produce();

}
